<?php 
/**
 *介绍人管理
*/

namespace app\api\controller;

use app\api\controller\Base;
use think\facade\Db;
use xhadmin\service\admin\record\IntroducerService;
use xhadmin\db\Introducer as IntroducerDb;
use think\facade\Cache;

class Introducer extends Base {


	/*介绍人管理*/
	function index(){
        //p(session('admin'));exit;
        try{
            $list = Db::name('introducer')->field('id,name')->select()->toArray();
        }catch(\Exception $e){
            exit($e->getMessage());
        }
        $data['status'] = '00';
        $data['rows']  = $list;
        return json($data);
	}



}

